package com.zimi.service;

import com.zimi.mapper.WfEntrustMapper;
import com.zimi.mapper.WfEntrustVOMapper;
import com.zimi.model.WfEntrust;
import com.zimi.model.WfEntrustVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WfEntrustService {

    @Autowired
    private WfEntrustMapper wfEntrustMapper;
    @Autowired
    private WfEntrustVOMapper wfEntrustVOMapper;


    public int deleteByPrimaryKey(Integer id) {
        return wfEntrustMapper.deleteByPrimaryKey(id);
    }


    public int insert(WfEntrust record) {
        return wfEntrustMapper.insert(record);
    }


    public int insertSelective(WfEntrust record) {
        return wfEntrustMapper.insertSelective(record);
    }


    public WfEntrust selectByPrimaryKey(Integer id) {
        return wfEntrustMapper.selectByPrimaryKey(id);
    }


    public int updateByPrimaryKeySelective(WfEntrust record) {
        return wfEntrustMapper.updateByPrimaryKeySelective(record);
    }


    public int updateByPrimaryKey(WfEntrust record) {
        return wfEntrustMapper.updateByPrimaryKey(record);
    }


    public List<WfEntrust> selectAll(WfEntrust record) {
        return wfEntrustMapper.selectAll(record);
    }

    public List<WfEntrustVO> selectEntrustVO(WfEntrustVO record) {
        return wfEntrustVOMapper.selectEntrustVO(record);
    }


}
